package com.wanlian.netty.msg.Device;

import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.msg.BaseMsg;
import com.wanlian.netty.msg.Device.model.PPPoE;
import com.wanlian.netty.msg.MsgType;

/**
 * pppoe账号限制
 */
public class PPPoERequest extends BaseMsg {

    private PPPoE ppPoE;

    public PPPoERequest() {
        super();
        setType(MsgType.DEVICE_PPPOE_SET);
    }

    public PPPoE getPpPoE() {
        return ppPoE;
    }

    public void setPpPoE(PPPoE ppPoE) {
        this.ppPoE = ppPoE;
        this.setContent(JsonStringUtil.writeValueAsString(ppPoE));
    }
}